/*
 * GeoVISTA Center (Penn State, Dept. of Geography)
 * Copyright (c), 2003-2011,  Jin Chen and Alan M. MacEachren, GeoVISTA Center, Penn State University
 * Licensed under Simplified BSD License
 *
 *
 * @author: jin Chen 
 * @date: Jun 12, 2005$
 * @version: 1.0
 */
package edu.psu.geovista.app.hce.clustering.matrix;

public class Extreme implements Comparable{
    public float value;
    public short x;
    public short y;

    public void set(Extreme e){
        value=e.value ;
        x=e.x;
        y=e.y;
    }
    public int compareTo(Object o) {
        Extreme e2=(Extreme) o;
        if(this.value <e2.value ){
            return -1;
        }
        else if (this.value > e2.value){
            return 1;
        }
        else
            return 0;

    }

   
}
